package org.advanced.collection;

import java.util.Arrays;

/**
 * @author John.zhang
 * @version Id: Char, v 1.0 2020/11/30 16:09 ZhiYong Exp $
 * 数组(内存地址连续，必须指定长度)
 * 增删会带来性能消耗(为保证数据下标越界问题，需要动态扩展，即动态拷贝)
 */
public class Char {

    public static void main(String[] args) {
        char[] chars = new char[]{'G', 'M', 'S', 'T', 'U'};
        char[] charsFix = new char[5];
        System.out.println(Arrays.toString(chars) + "" + Arrays.toString(charsFix));
    }

}
